package com.itheima.dubbo.interfaces;

import com.itheima.commons.pojo.domain.Question;

/**
 * @author yaohu
 * @date 2021/12/12
 * @Version 1.0
 * @describe
 */
public interface QuestionApi {

    /**
     * 根据用户id查询她设置的问题
     *
     * @param userId
     * @return
     */
    Question findQuestionByUserId(Long userId);

    /**
     * 保存陌生人问题
     *
     * @param question
     */
    void saveQuestion(Question question);
}
